package com.xyzq.cgate.admin.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.IService;
import com.xyzq.cgate.common.entity.Plugin;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenchen
 * @since 2019-06-06
 */
public interface PluginService extends IService<Plugin> {

    boolean insertDbAndZk(Plugin plugin);

    void deleteDbAndZk(EntityWrapper<Plugin> entityWrapper, Plugin plugin);

    void updateDbAndZk(Plugin plugin, EntityWrapper<Plugin> entityWrapper);

    void insertPluginDataToZk(Plugin plugin);

    void removeAllZkDataByParentPath(String parentPath);

}
